<table class="table table-bordered" id="dyntable">
    <colgroup>
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Nomor</th>
            <th class="head1">Tahun Angkatan</th>
            <th class="head1">Tingkat Kelas</th>
            <th class="head0">Nama Kelas</th>
            <th class="head1">Wali Kelas</th>
            <th class="head1">Jumlah Siswa di Kelas</th>
            <th class="head0">Option</th>
        </tr>
    </thead>
    <tbody>
        <?php
		$nomor = 0;
        foreach ($rslt_data_wali->result() as $value_data_kelas)
        {
			$nomor++;
            echo '<tr>';
            echo '<td>' . $nomor . '</td>';
            echo '<td>' . $value_data_kelas->tahun_angkatan . '</td>';
            echo '<td>' . $value_data_kelas->tingkat_kelas . '</td>';
            echo '<td>' . $value_data_kelas->nama_kelas . '</td>';
			if($value_data_kelas->nama_guru != '')
            echo '<td>' . $value_data_kelas->nama_guru . '</td>';
			else
            echo '<td><small style="color:red;">harap set wali kelas</small></td>';
            echo '<td>' . $value_data_kelas->jumlah_siswa . '</td>';
            if($value_data_kelas->nama_guru != '')
            echo '<td><center><a href="' . base_url('admin/wali_kelas/edit/' . $value_data_kelas->id) . '" title="Edit Wali Kelas"><i class="iconsweets-users2"></i></a>  |  
                <a href="' . base_url('admin/wali_kelas/hapus/' . $value_data_kelas->id) . '" title="Hapus Wali Kelas"><i class="iconsweets-trashcan"></i></a></center></td>';
            else
			{
				echo '<td><center>';
				echo '<a href="' . base_url('admin/wali_kelas/tambah/' . $value_data_kelas->id_kelas) . '" title="Set Wali Kelas"><i class="iconsweets-user2"></i></a>';
				echo '</center></td>';
			}
            echo '</tr>';
        }
        ?>
    </tbody>
</table>